package com.tz.test;

import com.spring4all.swagger.EnableSwagger2Doc;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @author zhangky
 * @since 2020/4/20
 */
@SpringBootApplication
@EnableEurekaClient
@EnableHystrix
@EnableCircuitBreaker
@EnableAspectJAutoProxy(exposeProxy=true)
@MapperScan("com.tz.test.mapper")
@EnableSwagger2Doc
@EnableScheduling  // 开启定时任务
@EnableAsync
public class BaseStartApplication {
    public static void main(String[] args) {
        SpringApplication.run(BaseStartApplication.class,args);
    }
}
